package cn.edu.scau.cmi.yangjiamin.springhibernate;


import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

public class Student implements Serializable {
	
	private Integer stu_id;
	
	private String stu_name;
	
	private Teacher tea;
	
	public Student() {
		
	}
	
	
	public Student(String stu_name) {
		
		this.stu_name = stu_name;
	}

	public Integer getStu_id() {
		return stu_id;
	}

	public void setStu_id(Integer stu_id) {
		this.stu_id = stu_id;
	}

	public String getStu_name() {
		return stu_name;
	}

	public void setStu_name(String stu_name) {
		this.stu_name = stu_name;
	}


	public Teacher getTea() {
		return tea;
	}


	public void setTea(Teacher tea) {
		this.tea = tea;
	}

	
	
	

}
